Files are closed using the IDL_FileClose() function.
void IDL_FileClose(int argc, IDL_VPTR *argv, char *argk)
The number of arguments in argv.
The arguments to the close function. These should be scalar integer values giving the Logical Unit Numbers of the file units to close.
Keywords. Set this argument to NULL.